package com.jsptags.navigation.pager;

// Referenced classes of package com.jsptags.navigation.pager:
//			SkipTagSupport, PagerTag

public final class SkipTag extends SkipTagSupport {

	private int pages;

	public final void setPages(int i) {
		pages = i;
	}

	public final int getPages() {
		return pages;
	}

	protected final boolean skip() {
		int i = pagerTag.getPageNumber() + pages;
		boolean flag = pagerTag.hasPage(i);
		if (flag)
			setPageAttributes(i);
		return flag;
	}

	public final void release() {
		pages = 0;
		super.release();
	}

	public SkipTag() {
		pages = 0;
	}
}
